// 定义关于counter的store
import { defineStore } from "pinia"
import dataJsonTwo from "@/mock/test.json"
// 分别倒入理科本一，理科本二，
import mathFirst from "@/mock/2022json/mathOne.json"
 import mathSecond from "@/mock/2022json/mathTwo.json"
 import liberalFirst from "@/mock/2022json/liberalOne.json"
 import liberalSecond from "@/mock/2022json/liberalTwo.json"
 

// 调用defineStore定义store, defineStore返回一个函数
const useCounter = defineStore("counter", {
state: () => ({
 counter: dataJsonTwo,
 mathOneJson: mathFirst,
 mathTwoJson: mathSecond,
 liberalOneJson:liberalFirst,
 liberalTwoJson:liberalSecond
})
})

// 将useCounter函数导出
export default useCounter